﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace Sublimation
{
    public class EnemyUnitBigCreep : EnemyUnit
    {
        new protected int NUMBER_OF_FRAMES_TO_PLAY = 6;
        new protected int FRAMES_PER_SECOND = 10;

        public EnemyUnitBigCreep(WorldProperties worldProperties, EnemyKind kind, int spawnPoint)
            : base(worldProperties, kind, spawnPoint)
        {
            new Vector2(19, 32);
        }

        public EnemyUnitBigCreep(WorldProperties worldProperties,EnemyKind kind)
            : base(worldProperties, kind)
        {
            new Vector2(19, 32);
        }

        protected override void LoadContent()
        {
            base.LoadContent();
            Origin = new Vector2(23, 34);
            textureAnimator = new AnimatedSprite.AnimatedTexture(Origin, Rotation, Scale, 1.0f);
            textureAnimator.Load(Game.Content, "Sprites\\enemy4", NUMBER_OF_FRAMES_TO_PLAY, FRAMES_PER_SECOND);
            textureAttack = new AnimatedSprite.AnimatedTexture(Origin, Rotation, Scale, 1.0f);
            textureAttack.Load(Game.Content, "Sprites\\enemy4_attack", 6, FRAMES_PER_SECOND);
            Scale = 1f;
        }

        public override void Kill()
        {
            base.Kill();
            if (Life <= 0) new Animation(worldProperties, this, 1.2f, 4, 10, "Sprites\\enemy4_dying");
        }
    }
}
